package org.datascooter.bundle.attribute;

import org.datascooter.bundle.EntityBundle;
import org.datascooter.utils.DBType;

/**
 * Purosed for storing a referense one entity to another many-to-one by explicit field in a table.
 * 
 * @author nemo
 * 
 */
public abstract class PersistReferenceAttribute extends PersistAttribute {

	private String entity;
	private EntityBundle bundle;

	public PersistReferenceAttribute(String name, String entity, String column, DBType type, int scale, int precision, boolean insertable, boolean updatable, boolean nullable) {
		super(name, type, column, scale, precision, nullable, insertable, updatable);
		this.entity = entity;
	}

	public String getEntity() {
		return entity;
	}

	public EntityBundle getBundle() {
		return bundle;
	}

	public void setBundle(EntityBundle bundle) {
		this.bundle = bundle;
	}
}
